﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DAL;
using Entity;

/// <summary>
///GpzjBLL 的摘要说明
/// </summary>
public class GpzjBLL
{
    /// <summary>
    /// 插入一条操盘攻略s
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    public bool InsertGpzj(Gpzj model)
    {
        GpzjDAL dal = new GpzjDAL();
        return dal.InsertGpzj(model);
    }
    /// <summary>
    /// 更新一条记录
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    public bool Update(Gpzj model)
    {
        GpzjDAL dal = new GpzjDAL();
        return dal.Update(model);
    }
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    public bool Delete(int id)
    {
        GpzjDAL dal = new GpzjDAL();
        return dal.Delete(id);
    }
    /// <summary>
    /// 得到所有的成功启示录
    /// </summary>
    /// <returns></returns>
    public List<Gpzj> GetTop50()
    {
        GpzjDAL dal = new GpzjDAL();
        return dal.GetTop50();
    }
    public Gpzj GetElementById(int id)
    {
        GpzjDAL dal = new GpzjDAL();
        return dal.GetElementById(id);
    }

}